/*
 * Copyright (c) 2025, 廖树财, <study_2030@163.com>
 *
 * PES1.0.3-YCYW is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2     
 *
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
#pragma once
#include "http.h"
#include "common.h"
#include <sys/stat.h>

char *uploadFileServer(char *filename, char *username, char *password, char *client_id, char *client_pw);

int terminalLog(char *pJson);

int file_download_v1(char *filename, ProgressInfo *info);

int file_download(char *filename, ProgressInfo *info);

int terminalLogLevel(char *pJson);
